package card_discount

import (
	// "bp/cache"
	"bp/conf"
	"bp/db"

	"go.uber.org/zap"
)

type CardDiscountEntityServiceImp struct {
	dao  *db.PgDao
	slog *zap.SugaredLogger
	vars *conf.VarsSection
}

// NewCardDiscountEntityService initialization
func NewCardDiscountEntityService(
	pgdao *db.PgDao,
	slog *zap.SugaredLogger,
	vars *conf.VarsSection,
) *CardDiscountEntityServiceImp {
	return &CardDiscountEntityServiceImp{
		dao:  pgdao,
		slog: slog.With("module", "CardDiscountEntityService"),
		vars: vars,
	}
}

// CardDiscountOfferItemInfo 卡折扣类优惠项目信息(试算+交易一样)
type CardDiscountOfferItemInfo struct {
	ID        int64  `json:"id"`
	OutCardID int64  `json:"out_card_id"`
	MemberID  int64  `json:"member_id"`
	Name      string `json:"name"`
	Desc      string `json:"desc"`
}
